package com.sls.web.manager.game.service;

import com.sls.web.manager.game.pojo.Goods;
import com.sls.web.manager.game.querybean.GoodsQuery;
import com.sls.web.manager.page.Pagination;
import com.sls.web.manager.pojo.UserInfoVO;

public interface GoodsService {
	public boolean add(Goods goods, UserInfoVO userInfoVO) throws Exception;

	public boolean update(Goods goods, UserInfoVO userInfoVO) throws Exception;

	public boolean updateState(String id, String state, String goodsId,
			UserInfoVO userInfoVO) throws Exception;

	public Pagination<Goods> queryGoods(GoodsQuery goodsQuery,
			UserInfoVO userInfoVO) throws Exception;

	public Goods queryGoodsById(String id, UserInfoVO userInfoVO)
			throws Exception;

	public void deleteByGoodsId(String goodsId, UserInfoVO userInfoVO)
			throws Exception;

	public void saveGoodsSupply(Goods goods, UserInfoVO userInfoVO)
			throws Exception;
	
	public void setPrice(Goods goods, UserInfoVO userInfoVO)
			throws Exception;
}
